﻿@*@model Qy.Scenario.ViewContentAndContent*@
@{
    ViewData["Title"] = ViewBag.info.Title;
    ViewData["SiteName"] = await SystemConfig.GetByFieldNameAsync("SiteName");
    ViewData["Description"] = await SystemConfig.GetByFieldNameAsync("Description");
    Layout = null;
}
<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="@ViewData["Description"]">
    <meta name="author" content="Cdeng">
    <title>@ViewData["Title"]</title>
    <link href="~/lib/layui/css/layui.css" rel="stylesheet">
    <link href="~/home/css/main.css" rel="stylesheet">
    <link href="~/home/css/content.css" rel="stylesheet">
</head>
<body>
    <style>
        body { width: 100%; min-height: 100%; background: url("/home/images/header_bg.jpg") top center no-repeat #fff; }
        .cxuu-index-margin-top { margin-top: 500px; }
    </style>
    <!--头部部分 开始-->
    <partial name="_Header" />
    <div class="layui-container" style="margin-top:10px;">
        <div class="layui-bg-gray" style="padding:10px;">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-panel" style="text-align:left;padding:10px;">
                        <span class="layui-breadcrumb">
                            <a href="/">Home</a>
                            <cite><a asp-area="Home" asp-controller="List" asp-action="Index" asp-route-id="@ViewBag.info.Cid">@ViewBag.cateInfo.Name</a></cite>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-container">
        <div class="layui-bg-gray" style="padding:10px;">
            <div class="layui-card">
                <div class="layui-card-header cxuu-title">@ViewBag.info.Title</div>
                <div class="layui-card-header cxuu-title-info">
                    <span>发布人：@ViewBag.info.NickName</span>
                    <span>审核人：@ViewBag.info.Examine </span>                    
                    <span>部门：@ViewBag.info.DeptName</span>
                    <span>View：@ViewBag.info.Hits</span>
                    <span>Time: @ViewBag.info.Time.ToString("d")</span>
                </div>
                <div class="layui-card-body">
                    <p><div id="content">@Html.Raw(ViewBag.info.Content)</div></p>
                </div>
                @if (ViewBag.attments != null)
                {
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <div class="cxuu_content_download">
                                <span class="layui-badge layui-bg-blue">附件下载：</span>
                                <ol>
                                    @foreach (var item in ViewBag.attments)
                                    {
                                        <li><a href="@item.Url" download="@item.Filename">@item.Filename</a></li>
                                    }
                                </ol>
                            </div>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
    <partial name="_Footer" />
    <script src="~/lib/layui/layui.js"></script>
    <script>
        layer.photos({
            photos: '#content'
            , anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
        });
    </script>
</body>
</html>